From: Joey Hess Date: Mon, 22 Sep 2025 16:07:16 +0000 (-0400) Subject: update X-Git-Tag: archive/raspbian/10.20251029-1+rpi1~1^2~3^2~79 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=ada2664b9c3893bd7c71e87845b6d0ae84f5cbd4;p=git-annex.git update --- diff --git a/doc/bugs/Unlock_filter_seems_to_deadlock_for_huge_worktree/comment_2_f04aebe3f9eaa4cb0044c9d305d9f649._comment b/doc/bugs/Unlock_filter_seems_to_deadlock_for_huge_worktree/comment_2_f04aebe3f9eaa4cb0044c9d305d9f649._comment index 954b8a76c2..33b3671fe9 100644 --- a/doc/bugs/Unlock_filter_seems_to_deadlock_for_huge_worktree/comment_2_f04aebe3f9eaa4cb0044c9d305d9f649._comment +++ b/doc/bugs/Unlock_filter_seems_to_deadlock_for_huge_worktree/comment_2_f04aebe3f9eaa4cb0044c9d305d9f649._comment @@ -5,4 +5,21 @@ content=""" I set annex.queuesize to 100, made 1000 files, and was able to reproduce the hang. + +A `git-annex smudge --update` process has open the `.git/annex/gitqueue.lck` file. +It is the only process with that lock file open. So it is in the process of trying to +flush the queued changes to the index that it is locking up. + +I removed .git/hooks/post-checkout, and then after the `git-annex adjust`, +manually running `git-annex smudge --update` causes the same hang. + +Debugging the git queue flush, it is hanging while running a FlushAction, specifically +restagePointerFileRunner. + +And the hang occurs when restagePointerFiles calls +Database.Keys.Handle.closeDbHandle. + +I suspect this bug may not be specific to `git-annex smudge --update` at all. It may be +that any time the git queue gets flushed with restagePointerFileRunner in the queue it +hangs like this. This needs further investigation. """]]